package com.jrx.anytxn.param.mapper.base;

import com.jrx.anytxn.param.entity.PrCardRollToleadRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PrCardRollToleadRecordMapper {

    /**
     * 根据主键查询 
     * @param cardRollId Long
     * @return GaAccountingCheckConfig
     */
    PrCardRollToleadRecord selectByCardRollId(@Param(value = "tenantId") String tenantId, @Param(value = "cardRollId") String cardRollId);

    List<PrCardRollToleadRecord> queryByCardRollToleadRecord(PrCardRollToleadRecord prCardRollToleadRecord);


    /**
     * 保存卡券导入记录
     * @param record PrCardRollToleadRecord
     * @return int
     */
    int insert(PrCardRollToleadRecord record);

    /**
     * 根据字段是否为空保存 卡券导入记录
     * @param record PrCardRollToleadRecord
     * @return int
     */
    int insertSelective(PrCardRollToleadRecord record);
}